/**
 * access 属性应该为唯一值，用来标示权限，每一个路由都应该对应有access值(除不需要权限的菜单)
 * 建议用路由名称来对应access值（需要在access.ts里设置对应access值权限）
 * 新增isSearch true(可以被搜索) false(不可以被搜索)
 * */
export default [
  {
    path: '/user',
    layout: false,
    isSearch: false,
    routes: [
      { path: '/user', routes: [{ name: '登录', path: '/user/login', component: './user/Login' }] },
    ],
  },
  { path: '/welcome', name: '欢迎', isSearch: true, icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    name: '管理页',
    isSearch: false,
    icon: 'crown',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: '二级管理页',
        isSearch: true,
        icon: 'smile',
        component: './Welcome',
      },
    ],
  },
  { name: '查询表格', isSearch: true, icon: 'table', path: '/list', component: './TableList' },
  {
    name: '测试路由',
    isSearch: true,
    icon: 'SlackOutlined',
    access: 'Test',
    path: '/test',
    component: './test',
  },
  { path: '/', isSearch: false, redirect: '/welcome' },
  { isSearch: false, component: './404' },
];
